﻿using System.Collections.Generic;
using UnityEngine;

public class DeckCircleController : MonoBehaviour
{
    public List<GameObject> blue;
    public List<GameObject> yellow;
    public Animation animation;
    
    public void SetHeroState(bool hasHero)
    {
        for (int i = 0; blue != null && i < blue.Count; i++)
        {
            if (blue[i])
            {
                blue[i].SetActive(!hasHero);
            }
        }

        for (int i = 0; yellow != null && i < yellow.Count; i++)
        {
            if (yellow[i])
            {
                yellow[i].SetActive(hasHero);
            }
        }
        /*blue.SetActive(!hasHero);
        yellow.SetActive(hasHero);*/
    }

}
